package com.techysky.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="sys_question_paper")
public class QuestionPaper extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
    @ManyToOne
    @JoinColumn(name = "PAPER_ID")
    private Paper paper;
    @ManyToOne
    @JoinColumn(name = "QUESTION_ID")
    private Question question;
	public QuestionPaper() {
		super();
	}
	public Paper getPaper() {
		return paper;
	}
	public void setPaper(Paper paper) {
		this.paper = paper;
	}
	public Question getQuestion() {
		return question;
	}
	public void setQuestion(Question question) {
		this.question = question;
	}
	public QuestionPaper(Paper paper, Question question) {
		super();
		this.paper = paper;
		this.question = question;
	}
	@Override
	public String toString() {
		return "QuestionPaper [paper=" + paper + ", question=" + question + "]";
	}
	

}
